400
How to specifiy the symbol that indicates the decimal values while editing a floating point number

G2antt1->BeginUpdate();
Exg2anttlib_tlb::IColumnPtr var_Column = G2antt1->Columns->Add(L"Float");
	var_Column->FormatColumn = L"len(value) ? (round(value) = value ? value : value format `|,|0`) : ``";
	Exg2anttlib_tlb::IEditorPtr var_Editor = var_Column->Editor;
		var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
		var_Editor->Numeric = Exg2anttlib_tlb::NumericEnum::exFloatInteger;
		var_Editor->set_Option(Exg2anttlib_tlb::EditorOptionEnum::exEditDecimalSymbol,TVariant(44));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0.12));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2.45));
G2antt1->EndUpdate();

399
How can I edit a float number
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->Numeric = Exg2anttlib_tlb::NumericEnum::exFloat;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

398
How can I edit a number
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->Numeric = Exg2anttlib_tlb::NumericEnum::exInteger;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

397
How do I limit the length of the text that the user may enter into an edit control
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->set_Option(Exg2anttlib_tlb::EditorOptionEnum::exEditLimitText,TVariant(1));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

396
How can I change the password character
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->set_Option(Exg2anttlib_tlb::EditorOptionEnum::exEditPassword,TVariant(true));
	var_Editor->set_Option(Exg2anttlib_tlb::EditorOptionEnum::exEditPasswordChar,TVariant(45));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

395
How can I add a password field
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->set_Option(Exg2anttlib_tlb::EditorOptionEnum::exEditPassword,TVariant(true));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

394
How can I align the text to the right, in my edit control
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->set_Option(Exg2anttlib_tlb::EditorOptionEnum::exEditRight,TVariant(true));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

393
How can I add a simple edit or text box to my column
G2antt1->Columns->Add(L"Edit")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));

392
How can I change the type of the editor
G2antt1->Columns->Add(L"Edit")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant(0));
	var_Items->AddItem(TVariant(1));
	var_Items->AddItem(TVariant(2));
G2antt1->Columns->get_Item(TVariant("Edit"))->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::SpinType;

391
How can I add a border arround the editor

Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Edit")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Editor->Appearance = Exg2anttlib_tlb::InplaceAppearanceEnum::FlatApp;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Edit"));
	var_Items->AddItem(TVariant("Edit"));
	var_Items->AddItem(TVariant("Edit"));

390
How do I assign an editor for the entire column
G2antt1->Columns->Add(L"Edit")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Edit"));
	var_Items->AddItem(TVariant("Edit"));
	var_Items->AddItem(TVariant("Edit"));

389
How do I check if a cell has an editor assigned
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->get_CellEditor(TVariant(var_Items->AddItem(TVariant("Edit -> ReadOnly "))),TVariant(0))->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Items->AddItem(TVariant("ReadOnly"));
	var_Items->AddItem(TVariant("ReadOnly"));
	var_Items->AddItem(TVariant(var_Items->get_HasCellEditor(TVariant(var_Items->FocusItem),TVariant(0))));

388
How do I delete or remove the editor for a sppecified cell
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->get_CellEditor(TVariant(var_Items->AddItem(TVariant("Edit -> ReadOnly "))),TVariant(0))->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Items->AddItem(TVariant("ReadOnly"));
	var_Items->AddItem(TVariant("ReadOnly"));
	var_Items->DeleteCellEditor(TVariant(var_Items->FocusItem),TVariant(0));

387
How do I hide or disable the editor assigned to a single cell
G2antt1->Columns->Add(L"Column")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Edit"));
	var_Items->set_CellEditorVisible(TVariant(var_Items->AddItem(TVariant("ReadOnly"))),TVariant(0),Exg2anttlib_tlb::EditorVisibleEnum::exEditorHidden);
	var_Items->AddItem(TVariant("Edit"));

386
How do I assign or change the editor for a particular cell
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("ReadOnly"));
	var_Items->get_CellEditor(TVariant(var_Items->AddItem(TVariant("Edit"))),TVariant(0))->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
	var_Items->AddItem(TVariant("ReadOnly"));

385
How do I get the caption of the cell as it is displayed on the control
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant(3));
	Exg2anttlib_tlb::IEditorPtr var_Editor = var_Items->get_CellEditor(TVariant(h),TVariant(0));
		var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::CheckListType;
		var_Editor->AddItem(1,L"One",TNoParam());
		var_Editor->AddItem(2,L"Two",TNoParam());
	var_Items->AddItem(TVariant(var_Items->get_CellCaption(TVariant(h),TVariant(0))));
	var_Items->AddItem(TVariant(var_Items->get_CellValue(TVariant(h),TVariant(0))));

384
How do I prevent scrolling the control's data after user does the sort
G2antt1->EnsureOnSort = false;
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Item 3"));
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
G2antt1->PutItems(G2antt1->GetItems(TVariant(0)),TNoParam());
G2antt1->PutItems(G2antt1->GetItems(TVariant(0)),TNoParam());
G2antt1->PutItems(G2antt1->GetItems(TVariant(0)),TNoParam());
G2antt1->Columns->get_Item(TVariant(0))->SortOrder = Exg2anttlib_tlb::SortOrderEnum::SortAscending;

383
How do I ensure that the focused item is visible, after the user does the sort
G2antt1->EnsureOnSort = true;
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Item 3"));
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
G2antt1->Columns->get_Item(TVariant(0))->SortOrder = Exg2anttlib_tlb::SortOrderEnum::SortAscending;

382
How can I disable selecting multiple items by dragging
G2antt1->SelectByDrag = false;
G2antt1->SingleSel = true;

381
Is there any function to change the default value for options of the editors
G2antt1->DefaultEditorOption[Exg2anttlib_tlb::EditorOptionEnum::exEditPassword] = TVariant(true);
G2antt1->Columns->Add(L"Pass1")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
G2antt1->Columns->Add(L"Pass2")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(1))),TVariant(1),TVariant(2));

380
How do I close the editor, or stop editing a cell
G2antt1->EditClose();

379
Is there any function to highlight or mark the cells that have a tooltip using my picture or icon

G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->MarkTooltipCells = true;
G2antt1->MarkTooltipCellsImage = 1;
G2antt1->Columns->Add(L"");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("This is a cell with a tooltip"))),TVariant(0),L"This is a bit of text that is shown when the cursor hovers the cell.");
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellToolTip(TVariant(var_Items1->AddItem(TVariant("This is a cell without a tooltip"))),TVariant(0),L"");

378
Is there any function to highlight or mark the cells that have a tooltip
G2antt1->MarkTooltipCells = true;
G2antt1->TooltipCellsColor = RGB(255,0,0);
G2antt1->Columns->Add(L"");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("This is a cell with a tooltip"))),TVariant(0),L"This is a bit of text that is shown when the cursor hovers the cell.");
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellToolTip(TVariant(var_Items1->AddItem(TVariant("This is a cell without a tooltip"))),TVariant(0),L"");

377
Is there any function to highlight or mark the cells that have a tooltip
G2antt1->MarkTooltipCells = true;
G2antt1->Columns->Add(L"");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellToolTip(TVariant(var_Items->AddItem(TVariant("This is a cell with a tooltip"))),TVariant(0),L"This is a bit of text that is shown when the cursor hovers the cell.");
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellToolTip(TVariant(var_Items1->AddItem(TVariant("This is a cell without a tooltip"))),TVariant(0),L"");

376
How do I find the window's handled when an editor is running
long var_Editing = G2antt1->Editing;

375
How can I start editing the cell
G2antt1->AutoEdit = false;
G2antt1->Edit(TNoParam());

374
Is there any option to edit the control's data manually, so the editor doesn't show up as soon as the cell is focused
G2antt1->MarkSearchColumn = false;
G2antt1->Columns->Add(L"Edit1")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
G2antt1->Columns->Add(L"Edit2")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(3))),TVariant(1),TVariant(4));
G2antt1->AutoEdit = false;

373
How can change the background color for selected editor
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSelectInPlace] = RGB(255,0,0);
G2antt1->Columns->Add(L"Editor")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::DropDownListType;
G2antt1->Items->AddItem(TVariant(20));

372
How can change the visual appearance for the spin control, using your EBN files
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSpinUpButtonUp] = 0x1000000;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSpinUpButtonDown] = 0x2000000;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSpinDownButtonUp] = 0x1000000;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSpinDownButtonDown] = 0x2000000;
G2antt1->Columns->Add(L"Editor")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::SpinType;
G2antt1->Items->AddItem(TVariant(20));

371
How can change the visual appearance for the slider or track bar, using your EBN files
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSliderThumb] = 0x1000000;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exSliderRange] = RGB(210,210,210);
G2antt1->Columns->Add(L"Editor")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::SliderType;
G2antt1->Items->AddItem(TVariant(20));

370
How can change the visual appearance for the button that are visible inside the editors, using your EBN files
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exButtonDown] = 0x1000000;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exButtonUp] = 0x2000000;
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Editor")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::DateType;
	var_Editor->AddButton(TVariant(1),TNoParam(),TNoParam(),TNoParam(),TNoParam(),TNoParam());
G2antt1->Items->AddItem(TVariant(TDateTime(2002,1,1).operator double()));

369
How can change the visual appearance for the button that shows the drop down editors, using your EBN files
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->VisualAppearance->Add(2,TVariant("c:\\exontrol\\images\\pushed.ebn"));
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exDropDownButtonUp] = 0x1000000;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exDropDownButtonDown] = 0x2000000;
G2antt1->Columns->Add(L"Editor")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::DateType;
G2antt1->Items->AddItem(TVariant(TDateTime(2002,1,1).operator double()));

368
How can I find the column that gets the focus
G2antt1->MarkSearchColumn = false;
G2antt1->Columns->Add(L"Edit1")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
G2antt1->Columns->Add(L"Edit2")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::EditType;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellValue(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellValue(TVariant(var_Items1->AddItem(TVariant(3))),TVariant(1),TVariant(4));
Exg2anttlib_tlb::IItemsPtr var_Items2 = G2antt1->Items;
	var_Items2->set_ItemDivider(var_Items2->AddItem(TVariant(G2antt1->FocusColumnIndex)),0);

367
How do I make the control read-only, but still can see the values in a drop down list
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exAllLines;
G2antt1->ReadOnly = Exg2anttlib_tlb::ReadOnlyEnum::exLocked;
G2antt1->Columns->Add(L"Editor")->Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::DateType;
G2antt1->Items->AddItem(TVariant(TDateTime(2003,1,1).operator double()));

366
How do I make the control read-only
G2antt1->ReadOnly = Exg2anttlib_tlb::ReadOnlyEnum::exReadOnly;
Exg2anttlib_tlb::IEditorPtr var_Editor = G2antt1->Columns->Add(L"Editor")->Editor;
	var_Editor->EditType = Exg2anttlib_tlb::EditTypeEnum::CheckListType;
	var_Editor->AddItem(1,L"One",TNoParam());
	var_Editor->AddItem(2,L"Two",TNoParam());
G2antt1->Items->AddItem(TVariant(1));

365
How do I change the control's border, using your EBN files
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->Appearance = Exg2anttlib_tlb::AppearanceEnum(0x1000000);

364
Can I change the default border of the tooltip, using your EBN files

G2antt1->ToolTipDelay = 1;
G2antt1->ToolTipWidth = 364;
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000;
G2antt1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";

363
Can I change the background color for the tooltip
G2antt1->ToolTipDelay = 1;
G2antt1->ToolTipWidth = 364;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exToolTipBackColor] = RGB(255,0,0);
G2antt1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";

362
Does the tooltip support HTML format
G2antt1->ToolTipDelay = 1;
G2antt1->ToolTipWidth = 364;
G2antt1->Columns->Add(L"tootip")->ToolTip = L"<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>";

361
Can I change the forecolor for the tooltip
G2antt1->ToolTipDelay = 1;
G2antt1->ToolTipWidth = 364;
G2antt1->Background[Exg2anttlib_tlb::BackgroundPartEnum::exToolTipForeColor] = RGB(255,0,0);
G2antt1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";

360
Can I change the foreground color for the tooltip
G2antt1->ToolTipDelay = 1;
G2antt1->ToolTipWidth = 364;
G2antt1->Columns->Add(L"tootip")->ToolTip = L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>";

359
How can I merge cells
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exAllLines;
G2antt1->MarkSearchColumn = false;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
G2antt1->Columns->Add(L"C3");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("this cell merges the first two columns"));
	var_Items->set_CellMerge(TVariant(h),TVariant(0),TVariant(1));
	h = var_Items->AddItem(TNoParam());
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("this cell merges the last two columns"));
	var_Items->set_CellMerge(TVariant(h),TVariant(1),TVariant(2));
	h = var_Items->AddItem(TVariant("this cell merges the all three columns"));
	var_Items->set_CellMerge(TVariant(h),TVariant(0),TVariant(1));
	var_Items->set_CellMerge(TVariant(h),TVariant(0),TVariant(2));
	h = var_Items->AddItem(TVariant("this draws a divider item"));
	var_Items->set_ItemDivider(h,0);

358
How can I merge cells
G2antt1->MarkSearchColumn = false;
G2antt1->TreeColumnIndex = -1;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
G2antt1->Columns->Add(L"C3");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	h = var_Items->AddItem(TVariant("This is bit of text merges all cells in the item (divider)"));
	var_Items->set_ItemDivider(h,0);
	var_Items->set_ItemDividerLine(h,Exg2anttlib_tlb::DividerLineEnum::EmptyLine);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	h = var_Items->AddItem(TVariant("Cell 2"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines. (cellmerge)"));
	var_Items->set_CellMerge(TVariant(h),TVariant(1),TVariant(2));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

357
How can I specify the width for a splited cell
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Columns->Add(L"Single Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Split 1"));
	TVariant s = TVariant(var_Items->get_SplitCell(TVariant(h),TVariant(0)));
	var_Items->set_CellWidth(TNoParam(),TVariant(s),64);
	var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split 2"));
	TVariant s1 = TVariant(var_Items->get_SplitCell(TNoParam(),TVariant(s)));
	var_Items->set_CellValue(TNoParam(),TVariant(s1),TVariant("Split 3"));
	var_Items->set_CellWidth(TNoParam(),TVariant(s1),64);

356
How can I split a cell in three parts
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Columns->Add(L"Single Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Split 1"));
	TVariant s = TVariant(var_Items->get_SplitCell(TVariant(h),TVariant(0)));
	var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split 2"));
	TVariant s1 = TVariant(var_Items->get_SplitCell(TNoParam(),TVariant(s)));
	var_Items->set_CellValue(TNoParam(),TVariant(s1),TVariant("Split 3"));

355
How can I add a button aligned to right
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->Columns->Add(L"Single Column");
G2antt1->ShowFocusRect = false;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_ItemDivider(var_Items->AddItem(TVariant("This is a bit of text being displayed on the entire item")),0);
	TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Split Cell 1.1"))),TVariant(0)));
	var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split Cell <img>1</img>"));
	var_Items->set_CellValueFormat(TNoParam(),TVariant(s),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellHasButton(TNoParam(),TVariant(s),true);
	var_Items->set_CellWidth(TNoParam(),TVariant(s),84);

354
How can I split a cell

G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
G2antt1->Columns->Add(L"Single Column");
G2antt1->ShowFocusRect = false;
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	TVariant s = TVariant(var_Items->get_SplitCell(TVariant(var_Items->AddItem(TVariant("Split Cell 1.1"))),TVariant(0)));
	var_Items->set_CellValue(TNoParam(),TVariant(s),TVariant("Split Cell <img>1</img>"));
	var_Items->set_CellValueFormat(TNoParam(),TVariant(s),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellHAlignment(TNoParam(),TVariant(s),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellBackColor(TNoParam(),TVariant(s),0x1000000);
	var_Items->set_CellWidth(TNoParam(),TVariant(s),84);

353
Can I select an item giving its general position
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_SelectPos(TVariant(1));

352
How can I change the color for separator / dividers items
G2antt1->GridLineColor = RGB(255,0,0);
G2antt1->MarkSearchColumn = false;
G2antt1->TreeColumnIndex = -1;
G2antt1->ScrollBySingleLine = false;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	h = var_Items->AddItem(TNoParam());
	var_Items->set_ItemDivider(h,0);
	var_Items->set_ItemDividerLine(h,Exg2anttlib_tlb::DividerLineEnum::DoubleDotLine);
	var_Items->set_ItemDividerLineAlignment(h,Exg2anttlib_tlb::DividerAlignmentEnum::DividerCenter);
	var_Items->set_ItemHeight(h,6);
	var_Items->set_SelectableItem(h,false);
	h = var_Items->AddItem(TVariant("Cell 2"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

351
How can I add separator - dividers items
G2antt1->MarkSearchColumn = false;
G2antt1->TreeColumnIndex = -1;
G2antt1->ScrollBySingleLine = false;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	h = var_Items->AddItem(TNoParam());
	var_Items->set_ItemDivider(h,0);
	var_Items->set_ItemDividerLine(h,Exg2anttlib_tlb::DividerLineEnum::DoubleDotLine);
	var_Items->set_ItemDividerLineAlignment(h,Exg2anttlib_tlb::DividerAlignmentEnum::DividerCenter);
	var_Items->set_ItemHeight(h,6);
	var_Items->set_SelectableItem(h,false);
	h = var_Items->AddItem(TVariant("Cell 2"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

350
Can I change the style of the line being displayed by a divider item

G2antt1->MarkSearchColumn = false;
G2antt1->TreeColumnIndex = -1;
G2antt1->ScrollBySingleLine = false;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	h = var_Items->AddItem(TVariant("This is bit of text that's displayed on the entire item, divider."));
	var_Items->set_ItemDivider(h,0);
	var_Items->set_ItemDividerLine(h,Exg2anttlib_tlb::DividerLineEnum::DoubleDotLine);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_ItemHeight(h,24);

349
Can I remove the line being displayed by a divider item
G2antt1->MarkSearchColumn = false;
G2antt1->TreeColumnIndex = -1;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	h = var_Items->AddItem(TVariant("This is bit of text that's displayed on the entire item, divider."));
	var_Items->set_ItemDivider(h,0);
	var_Items->set_ItemDividerLine(h,Exg2anttlib_tlb::DividerLineEnum::EmptyLine);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);

348
How can I display a divider item, merging all cells
G2antt1->MarkSearchColumn = false;
G2antt1->TreeColumnIndex = -1;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	h = var_Items->AddItem(TVariant("This is bit of text that's displayed on the entire item, divider."));
	var_Items->set_ItemDivider(h,0);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);

347
How can I fix or lock items
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_LockedItemCount(Exg2anttlib_tlb::VAlignmentEnum::exTop,1);
	var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exTop,0)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
	var_Items->set_ItemBackColor(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exTop,0),RGB(196,196,186));
	var_Items->set_LockedItemCount(Exg2anttlib_tlb::VAlignmentEnum::exBottom,2);
	var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exBottom,0)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
	var_Items->set_ItemBackColor(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exBottom,0),RGB(196,196,186));
	var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exBottom,1)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
	var_Items->set_ItemBackColor(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exBottom,1),RGB(186,186,186));

346
How can I fix or lock an item on the bottom side of the control
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_LockedItemCount(Exg2anttlib_tlb::VAlignmentEnum::exBottom,1);
	var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exBottom,0)),TVariant(0),TVariant("This is a locked item, fixed to the bottom side of the control."));
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);

345
How can I fix or lock an item on the top of the control
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_LockedItemCount(Exg2anttlib_tlb::VAlignmentEnum::exTop,1);
	var_Items->set_CellValue(TVariant(var_Items->get_LockedItem(Exg2anttlib_tlb::VAlignmentEnum::exTop,0)),TVariant(0),TVariant("This is a locked item, fixed to the top side of the control."));
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);

344
Is there any function to limit the height of the items when I display it using multiple lines

G2antt1->ScrollBySingleLine = true;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	var_Items->set_ItemMaxHeight(h,48);

343
Why I cannot center my cells in the column
G2antt1->TreeColumnIndex = -1;
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Columns->Add(L"Default")->Alignment = Exg2anttlib_tlb::AlignmentEnum::CenterAlignment;
G2antt1->Items->AddItem(TVariant("item 1"));
G2antt1->Items->AddItem(TVariant("item 2"));
G2antt1->Items->AddItem(TVariant("item 3"));

342
How can I align the cell to the left, center or to the right
G2antt1->TreeColumnIndex = -1;
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("left"))),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::LeftAlignment);
	var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("center"))),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellHAlignment(TVariant(var_Items->AddItem(TVariant("right"))),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::RightAlignment);

341
How do I apply HTML format to a cell
G2antt1->TreeColumnIndex = -1;
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
G2antt1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("The following item shows some of the HTML format supported:"));
	var_Items->set_CellHAlignment(TVariant(h),TVariant(0),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	h = var_Items->AddItem(TVariant(String("text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img>text <b>bold</b>, <i>italic</i>, <u>underline</") +
"u>, <s>strikeout</s>, ...<dotline>and so on... <a>anchor</a> or <a2>hyperlink</a><fgcolor=FF0000>fgcolor</fgcolor> or <bgcolor=0" +
"0FF00>bgcolor</bgcolor> "));
	var_Items->set_CellValueFormat(TVariant(h),TVariant(0),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellSingleLine(TVariant(h),TVariant(0),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

340
How can I change the font for a cell
G2antt1->Columns->Add(L"Default");
G2antt1->Items->AddItem(TVariant("std font"));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("this <font tahoma;12>is a bit of text with</font> a different font"))),TVariant(0),Exg2anttlib_tlb::ValueFormatEnum::exHTML);

339
How can I change the font for a cell
G2antt1->DefaultItemHeight = 22;
G2antt1->Columns->Add(L"Default");
G2antt1->Items->AddItem(TVariant("default font"));
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Name = L"Tahoma";
	f->Size = TVariant(long(12));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellFont(TVariant(var_Items->AddItem(TVariant("new font"))),TVariant(0),(IFontDisp*)(f));
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellFont(TVariant(var_Items1->AddItem(TVariant("new font"))),TVariant(0),(IFontDisp*)(G2antt1->ExecuteTemplate(L"Dim f;f = CreateObject(`StdFont`);{;Name = `Tahoma`;Size = 14;};")));

338
How can I change the font for entire item
G2antt1->Columns->Add(L"Default");
G2antt1->Items->AddItem(TVariant("default font"));
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Name = L"Tahoma";
	f->Size = TVariant(long(12));
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_ItemFont(var_Items->AddItem(TVariant("new font")),(IFontDisp*)(f));

337
How do I vertically align a cell
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Columns->Add(L"MultipleLine")->set_Def(Exg2anttlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
G2antt1->Columns->Add(L"VAlign");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("top"));
	var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::VAlignmentEnum::exTop);
	h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("middle"));
	var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::VAlignmentEnum::exMiddle);
	h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("bottom"));
	var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::VAlignmentEnum::exBottom);

336
How can I change the position of an item
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->AddItem(TVariant("Item 1"));
	var_Items->AddItem(TVariant("Item 2"));
	var_Items->set_ItemPosition(var_Items->AddItem(TVariant("Item 3")),0);

335
How do I find an item based on a path
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->set_ItemData(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")),TVariant(1234));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_ItemBold(var_Items->get_FindPath(L"Root 1\\Child 1"),true);

334
How do I find an item based on my extra data
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->set_ItemData(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")),TVariant(1234));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_ItemBold(var_Items->get_FindItemData(TVariant(1234),TNoParam()),true);

333
How do I find an item
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_ItemBold(var_Items->get_FindItem(TVariant("Child 2"),TVariant(0),TNoParam()),true);

332
How can I insert a hyperlink or an anchor element
G2antt1->Columns->Add(L"Column");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_CellValueFormat(TVariant(var_Items->AddItem(TVariant("Just an <a1>anchor</a> element ..."))),TVariant(0),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
Exg2anttlib_tlb::IItemsPtr var_Items1 = G2antt1->Items;
	var_Items1->set_CellValueFormat(TVariant(var_Items1->AddItem(TVariant("Just another <a2>anchor</a> element ..."))),TVariant(0),Exg2anttlib_tlb::ValueFormatEnum::exHTML);

331
How do I find the index of the item based on its handle
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_ItemBold(var_Items->get_ItemByIndex(var_Items->get_ItemToIndex(h)),true);

330
How do I find the handle of the item based on its index
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_ItemBold(var_Items->get_ItemByIndex(1),true);

329
How can I find the cell being clicked in a radio group
G2antt1->MarkSearchColumn = false;
G2antt1->SelBackColor = RGB(255,255,128);
G2antt1->SelForeColor = RGB(0,0,0);
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
G2antt1->Columns->Add(L"C3");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
	var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
	var_Items->set_CellState(TVariant(h),TVariant(1),1);
	var_Items->set_CellBold(TNoParam(),TVariant(var_Items->get_CellChecked(1234)),true);

328
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
G2antt1->LinesAtRoot = Exg2anttlib_tlb::LinesAtRootEnum::exLinesAtRoot;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_ItemHasChildren(var_Items->AddItem(TVariant("parent item with no child items")),true);
	var_Items->AddItem(TVariant("next item"));

327
Can I let the user to resize at runtime the specified item
G2antt1->ScrollBySingleLine = true;
G2antt1->DrawGridLines = Exg2anttlib_tlb::GridLinesEnum::exRowLines;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	var_Items->set_ItemAllowSizing(var_Items->AddItem(TVariant("resizable item")),true);
	var_Items->AddItem(TVariant("not resizable item"));

326
How can I change the size ( width, height ) of the picture

G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->set_CellPicture(TVariant(h),TVariant(0),G2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
	var_Items->set_CellPictureWidth(TVariant(h),TVariant(0),24);
	var_Items->set_CellPictureHeight(TVariant(h),TVariant(0),24);
	var_Items->set_ItemHeight(h,32);
	h = var_Items->AddItem(TVariant("Root 2"));
	var_Items->set_CellPicture(TVariant(h),TVariant(0),G2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
	var_Items->set_ItemHeight(h,48);

325
How can I find the number or the count of selected items
G2antt1->SingleSel = false;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_SelectItem(var_Items->get_ItemChild(h),true);
	var_Items->set_SelectItem(var_Items->get_NextSiblingItem(var_Items->get_ItemChild(h)),true);
	var_Items->AddItem(TVariant(var_Items->SelectCount));

324
How do I unselect an item
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_SelectItem(h,false);

323
How do I find the selected item
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_SelectItem(h,true);
	var_Items->set_ItemBold(var_Items->get_SelectedItem(0),true);

322
How do I un select all items
G2antt1->SingleSel = false;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->UnselectAll();

321
How do I select multiple items
G2antt1->SingleSel = false;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_SelectItem(var_Items->get_ItemChild(h),true);
	var_Items->set_SelectItem(var_Items->get_NextSiblingItem(var_Items->get_ItemChild(h)),true);

320
How do I select all items
G2antt1->SingleSel = false;
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->SelectAll();

319
How do I select an item
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_SelectItem(h,true);

318
Can I display a button with some picture or icon inside

G2antt1->HTMLPicture[L"p1"] = TVariant(String("gBHJJGHA5MIwAEIe4AAAFhwbiEQEsTigwEowjEZGA7jkdIsfkBQkUjLZQLclLZlk8rlRlOBlmEwl5wmhwPc3nCFPaFSCFnk8nqQTaQolEoabpCbUtKUtNWFPp67qVTX") +
"bFq1VqzQjjQKA7aFfaDbsRFHbbKBFsVpcrljjlsjlrtwIrlkrlPZwtbbtbleEieEleEqeE3eCFMuFODwsTwtbwxz7qz7tb7x+UfeXAOZzWbzmdz2f0Gh0Wj0ml02n1Gp" +
"1Wr1mt12v2Gx2Wz2m122318MAAhfIEAMMf4AFm6hPFIAI4L/BIcJCwUDBQYICYeKjwMSEYYRDaMJCcJCxURFRQYExMMDAOJAIQEBofMS4JCyUiRBQKCggLAJEChQIXEA" +
"xEEWBADAIxHAwHgyBATBEAEQoIg4EoXC4DB4nmQQDESAYRAwLBdFoEphAAEweCQeoQDCIRCFWLBXh8bB1FAVZBgMMBhkULodFAVgpkK4JUC6ZZbFabZbjYaIXCYJI7lK" +
"bpdjwTJ1EqHYIHI7IjhKewOCYXAYHCCoJhaaAmgyYBygWCJICKMAoRqI5Hg8FQMEoEhlDyURBAQO4Gk4GocAAcxDgeEAUFQLwWlCVRqlYCJbB8eBtAqdgBl6UQJgEaBg" +
"E2G5AhAYBBgGT4EA4Y5FguFYrFADAIkAIBBAKMBliUD5mluXR6nWbBZhGKgAEGYo4goDgcDYf4MG+XZeEMBh0BiVAvmeDwhkOe4OhcPAiHQe4wjASZ8BKLxwGQQB4mOS" +
"AHDKSBvkARQWmsDAhBeIoTGyAgEGgGoAgICo0HoEABggIETkKDApCQAIvGoCJKDABAQkRVIGhkUgQCGBYdiaegBAUEpeDAIgEiCOooAEBwJBCUBKC8DoHCoTQmBmBoQE" +
"GBwZHYEBhgAAYpAIYBGiYcoUAgKgpjyUAtDWKpglMCori8RICksAZcBSfIngAEpGFuIIDg4CIQFMOgyEsFJgEyAYSEgQAsDKNRMgsAAKCw54ACCcAwBOCBhAqO5ODkFh" +
"LAgISGh4W5zDoNw1DOdBQkQExVHQURGHkWpsDEPAig0DQ3EoDQYG+OwXkoeBoAMFwLCSaQFgwBA6kCIxLg0YhoC+e54jSbBVB6SoYAiAx+Dqf56A+VRPE0Mggj+OgOjw" +
"KA+gCawtCkQJcmcFQJCeVgLEWTAiGAVxSFWIJ6kSGBhCQXwvFocIui0EwMAyAwDGocABAabYNHAFYBmmbQqnaGMSIXRQAAAaD8UgSxBhmFqCIcAwAlBJB0AYETDRoBEA" +
"GBEfAzhICiFODYMwmRoCOBkNEUgw3AgMFCIMW4tQPDpBe4IUYVl8jwAMCAOIABHiuAoGsVgKQQjZGoL8FYnBzDBAOKwII+QtBWFkM0KwZQsC3HCJgCAkwpiJBYGUNgVB" +
"PBsBKJYJgDRQAlEuFINo4BgjLBgJsLgmxKhAFuLkGQCQNjwFsME3Y5AMhEAiBQCoZwOByA6AQUAZgsBCB+AUVwUQ5jWAyAQTwwAYgdG4NMPkkQuCgGeDUKAtXEBhBAIA" +
"TodgXAHDEAgEY4A4ADDkK0YQGABAADEB4OAwABA2FWA8UoHQuCAGGNUdA4BCAXDcLgIRmQAA7ICA=");
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button <img>p1</img> "));
	var_Items->set_CellValueFormat(TVariant(h),TVariant(1),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);
	var_Items->set_ItemHeight(h,48);

317
Can I display a button with some picture or icon inside
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button <img>1</img> "));
	var_Items->set_CellValueFormat(TVariant(h),TVariant(1),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);

316
Can I display a button with some icon inside
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" <img>1</img> "));
	var_Items->set_CellValueFormat(TVariant(h),TVariant(1),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);

315
How can I assign multiple icon/picture to a cell
G2antt1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
G2antt1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("text <img>p1</img> another picture <img>p2</img> and so on"));
	var_Items->set_CellValueFormat(TVariant(h),TVariant(0),Exg2anttlib_tlb::ValueFormatEnum::exHTML);
	var_Items->set_CellPicture(TVariant(h),TVariant(0),G2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"));
	var_Items->set_ItemHeight(h,48);
	var_Items->AddItem(TVariant("Root 2"));

314
How can I assign an icon/picture to a cell
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->set_CellPicture(TVariant(h),TVariant(0),G2antt1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
	var_Items->set_ItemHeight(h,48);
	var_Items->AddItem(TVariant("Root 2"));

313
How can I assign multiple icons/pictures to a cell
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root <img>1</img> 1, <img>2</img>, ... and so on "));
	var_Items->set_CellValueFormat(TVariant(h),TVariant(0),Exg2anttlib_tlb::ValueFormatEnum::exHTML);

312
How can I assign multiple icons/pictures to a cell

G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->set_CellImages(TVariant(h),TVariant(0),TVariant("1,2,3"));

311
How can I assign an icon/picture to a cell

G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->set_CellImage(TVariant(h),TVariant(0),1);
	var_Items->set_CellImage(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"))),TVariant(0),2);
	var_Items->set_CellImage(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"))),TVariant(0),3);
	var_Items->set_ExpandItem(h,true);

310
How can I get the handle of an item based on the handle of the cell
G2antt1->Columns->Add(L"Default");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Root 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
	var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
	var_Items->set_ExpandItem(h,true);
	var_Items->set_ItemBold(var_Items->get_CellItem(var_Items->get_ItemCell(h,TVariant(0))),true);

309
How can I display a button inside the item or cell
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button 1 "));
	var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellButtonAutoWidth(TVariant(h),TVariant(1),true);
	h = var_Items->AddItem(TVariant("Cell 2"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant(" Button 2 "));
	var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Exg2anttlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);

308
How can I change the state of a radio button
G2antt1->MarkSearchColumn = false;
G2antt1->SelBackColor = RGB(255,255,128);
G2antt1->SelForeColor = RGB(0,0,0);
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
G2antt1->Columns->Add(L"C3");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
	var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
	var_Items->set_CellState(TVariant(h),TVariant(1),1);

307
How can I assign a radio button to a cell
G2antt1->MarkSearchColumn = false;
G2antt1->SelBackColor = RGB(255,255,128);
G2antt1->SelForeColor = RGB(0,0,0);
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
G2antt1->Columns->Add(L"C3");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
	var_Items->set_CellValue(TVariant(h),TVariant(2),TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
	var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
	var_Items->set_CellState(TVariant(h),TVariant(1),1);

306
How can I change the state of a checkbox
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Check Box"));
	var_Items->set_CellHasCheckBox(TVariant(h),TVariant(1),true);
	var_Items->set_CellState(TVariant(h),TVariant(1),1);

305
How can I assign a checkbox to a cell
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Check Box"));
	var_Items->set_CellHasCheckBox(TVariant(h),TVariant(1),true);

304
How can I display an item or a cell on multiple lines
G2antt1->ScrollBySingleLine = true;
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines"));
	var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Exg2anttlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

303
How can I assign a tooltip to a cell
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("tooltip"));
	var_Items->set_CellToolTip(TVariant(h),TVariant(1),L"This is bit of text that's shown when the user hovers the cell");

302
How can I associate an extra data to a cell
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellData(TVariant(h),TVariant(1),TVariant("your extra data"));

301
How do I enable or disable a cell
G2antt1->Columns->Add(L"C1");
G2antt1->Columns->Add(L"C2");
Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items;
	long h = var_Items->AddItem(TVariant("Cell 1"));
	var_Items->set_CellValue(TVariant(h),TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellEnabled(TVariant(h),TVariant(1),false);